package io.finer.erp.jeecg.stock.entity;

import java.io.Serializable;

import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.experimental.Tolerate;

/**
 * @Description: 物料出入库记录表
 * @Author: jeecg-boot
 * @Date:   2020-09-24
 * @Version: V1.0
 */
@Data
@Builder
@TableName("stk_io_material_log")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="stk_io_material_log对象", description="物料出入库记录表")
@AllArgsConstructor
public class StkIoMaterialLog implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**物料ID*/
	@Excel(name = "物料ID", width = 15)
    @ApiModelProperty(value = "物料ID")
    private java.lang.String materialId;
	/**出入库单ID*/
	@Excel(name = "出入库单ID", width = 15)
    @ApiModelProperty(value = "出入库单ID")
    private java.lang.String billId;
	/**生产订单ID*/
	@Excel(name = "生产订单ID", width = 15)
    @ApiModelProperty(value = "生产订单ID")
    private java.lang.String productOrderId;
	/**单位*/
	@Excel(name = "单位", width = 15)
    @ApiModelProperty(value = "单位")
    private java.lang.String unitId;
	/**成本*/
	@Excel(name = "成本", width = 15)
    @ApiModelProperty(value = "成本")
    private java.math.BigDecimal cost;
	/**数量*/
	@Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private java.math.BigDecimal qty;
	/**出入库明细ID*/
	@Excel(name = "出入库明细ID", width = 15)
    @ApiModelProperty(value = "出入库明细ID")
    private java.lang.String entityId;
	/**是否已核算成本*/
	@Excel(name = "是否已核算成本", width = 15)
    @ApiModelProperty(value = "是否已核算成本")
    private java.lang.Integer isAccount;
	/**出入库类型*/
	@Excel(name = "出入库类型", width = 15)
    @ApiModelProperty(value = "出入库类型")
    private java.lang.String ioType;
	/**工序ID*/
	@Excel(name = "工序ID", width = 15)
    @ApiModelProperty(value = "工序ID")
	private String procedureId;
	
	/**出入库类型 1入库 2出库*/
	@Excel(name = "出入库类型", width = 15)
    @ApiModelProperty(value = "出入库类型")
	private java.lang.Integer inOrOut;
	
	private java.math.BigDecimal amount;
	
	private java.math.BigDecimal length;
	
	private java.math.BigDecimal width;
	
	private java.math.BigDecimal square;
	
	@Excel(name = "物料编码", width = 15)
    @ApiModelProperty(value = "物料编码")
	private String materialCode;
	
	@Tolerate
	public StkIoMaterialLog() {
		super();
	}
}
